body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.class-header { /* 头部样式 */
    top: 0;
    left: 0;
    position: relative;
    background-color: white;
    z-index: 100; /* 确保头部在最上层 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 增加头部阴影 */
}


.main-content {
    margin-top: 80;
}

.class-news {
    background: #f9f9f9; /* 调整新闻背景色 */
    border: 1px solid #d3d3d3; /* 边框宽度为2px，颜色为#333，可根据需求修改 */
    padding: 20px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease; /* 增加新闻悬停过渡效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增加新闻阴影 */
}

.class-news:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 鼠标悬停时新闻阴影增大 */
}

/* 卡片容器样式 */
.card-container {
    display: flex; /* 使用弹性布局 */
    flex-wrap: wrap; /* 允许卡片换行 */
    justify-content: center; /* 水平居中 */
    gap: 30px; /* 卡片之间的间距 */
    padding: 30px; 
}

/* 卡片样式 */
.card {
    width: 320px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 确保卡片内容不溢出 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 增加卡片过渡效果 */
}

/* 鼠标悬停时卡片的效果 */
.card:hover {
    transform: translateY(-5px);
}

/* 卡片图片样式 */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 卡片内容区域样式 */
.card-content {
    padding: 16px;
}

/* 卡片标题样式 */
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 卡片描述样式 */
.card-description {
    font-size: 0.9rem;
    color: #666;
}

h3 {
    text-align: center;
    margin-top: 10xp;
}

h2 {
    text-align: center;
    margin-top: 30px;
}

/* 媒体查询，适配手机屏幕 */
@media (max-width: 768px) {
    .main-content {
        margin-top: 20px; /* 手机屏幕上减小上边距 */
    }

    .class-news {
        padding: 10px; /* 手机屏幕上减小内边距 */
    }

    .card-container {
        padding: 10px; /* 手机屏幕上减小内边距 */
        gap: 10px; /* 手机屏幕上减小卡片间距 */
    }

    #chart-container {
        width: 100%; /* 图表容器宽度设为100% */
        height: 300px; /* 手机屏幕上减小图表高度 */
    }
}

.ol-xywh {
    text-align: center;
    font-size: 16px;
}

.whln {
    text-align: center;
    font-size: 20px;
}

#toggle-more-images {
   background-color: rgb(73, 96, 221); 
   /* 新增：让查看更多图片按钮变圆 */
    border-radius: 50%; 
    /* 可以根据需要调整按钮的宽度和高度，保证按钮是正方形 */
    width: 40px;
    height: 40px; 
    /* 隐藏多余的文本 */
    font-size: 12px;
    overflow: hidden;
    /* 文本居中 */
    text-align: center;
    color: white;
    border: 1px solid #ccc;

}


.like-button {
    border-radius: 10px;
    background-color: transparent; /* 背景透明 */
}

 /* 滑动开关样式 */
 .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.form_switch {
    border-radius: 10px;
    border: 1px solid #ccc;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 400px;
    width: 500px;
    margin-left: auto; /* 左侧间距为自动 */
    margin-right: auto; /* 右侧间距为自动 */
}

.KoHao {
    text-align: center;
    margin-top: 20px;
}

.card1-container {
    display: flex; /* 使用弹性布局 */
    flex-wrap: wrap; /* 允许卡片换行 */
    justify-content: center; /* 水平居中 */
    gap: 30px; /* 卡片之间的间距 */
    padding: 30px; 
}

.card1 {
    width: 320px;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 确保卡片内容不溢出 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 增加卡片过渡效果 */
}

.card1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 卡片内容区域样式 */
.card1-content {
    padding: 16px;
}

/* 卡片标题样式 */
.card1-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 卡片描述样式 */
.card1-description {
    font-size: 0.9rem;
    color: #666;
}

/* 鼠标悬停时卡片的效果 */
.card1:hover {
    transform: translateY(-5px);
}

.tab-content img { /* 图片样式 */
    max-width: 30%;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 图片阴影 */
    transition: transform 0.3s ease; /* 图片缩放过渡效果 */
}

.tab-content img:hover {
    transform: scale(1.05); /* 鼠标悬停时图片放大 */
}

.tab-content video { /* 视频样式 */
    max-width: auto;
    height: auto;
    border-radius: 5px;
}

.bat-content video:hover { 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 图片阴影 */
    transition: transform 0.5s ease; /* 图片缩放过渡效果 */
}

.tab-content { /* 内容区域样式 */
    margin-top: 5px;
    display: grid; /* 使用网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 自动适应列数 */
    gap: 20px; /* 列之间的间距 */
    margin-top: 20px; /* 上边距 */
}

.image-flow {
    display: flex;
    overflow: hidden; /* 隐藏溢出的部分 */
    width: 99; /* 宽度为99% */
    height: 300px; /* 高度为300像素 */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 图片阴影 */
    transition: transform 0.3s ease; /* 图片缩放过渡效果 */
    margin: 10px;
}

.image-group { /* 图片组样式 */
    display: flex; /* 使用弹性布局 */
    border-radius: 8px;
    animation: slideLeft 9s linear infinite; /* 10s 是动画持续时间 */
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
}
    100% {
        transform: translateX(-100%); 
}
}

.neon-text {
    font-size: 5rem;
    font-weight: bold;
    color: transparent;
    background: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: neonFlow 5s linear infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

